package com.tanxi521.springboot.mapper;

import com.tanxi521.springboot.pojo.RewardRecord;
import org.springframework.stereotype.Repository;

@Repository
public interface RewardRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RewardRecord record);

    int insertSelective(RewardRecord record);

    RewardRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RewardRecord record);

    int updateByPrimaryKey(RewardRecord record);

    int selectByIdAndUserName(Integer id, String userName);

    int deleteWhereTimeToUpdatePerDay();

    int deleteWhereTimeToUpdatePerWeek();

}